<template>
    <div>
        支付成功！！
    </div>
</template>

<script>
import { getPayResult } from "@/api/other/vipPay";

export default {
    mounted() {
        console.log();
        getPayResult(this.$route.query).then(res => {
            this.$message({
                message: res.data ? '支付成功！' : "支付失败",
                type: res.data ? 'success' : 'error'
            });
            this.$router.push("/o/vip/vipCenter");
        }).catch(err => {
            console.log(err);
        });
    }
}
</script>

<style></style>

